home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / intuition / disposeobject.c < prev    next >
C/C++ Source or Header  |  1996-09-12  |  2KB  |  75 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: disposeobject.c,v 1.1 1996/08/28 17:55:34 digulla Exp $
  4.     $Log: disposeobject.c,v $
  5.     Revision 1.1  1996/08/28 17:55:34  digulla
  6.     Proportional gadgets
  7.     BOOPSI
  8.  
  9.  
  10.     Desc:
  11.     Lang: english
  12. */
  13. #include <intuition/classes.h>
  14. #include <clib/alib_protos.h>
  15. #include "intuition_intern.h"
  16.  
  17. /*****************************************************************************
  18.  
  19.     NAME */
  20.     #include <intuition/classusr.h>
  21.     #include <clib/intuition_protos.h>
  22.  
  23.     __AROS_LH1(void, DisposeObject,
  24.  
  25. /*  SYNOPSIS */
  26.     __AROS_LHA(APTR, object, A0),
  27.  
  28. /*  LOCATION */
  29.     struct IntuitionBase *, IntuitionBase, 107, Intuition)
  30.  
  31. /*  FUNCTION
  32.     Deletes a BOOPSI object. All memory associated with the object
  33.     is freed. The object must have been created with NewObject().
  34.     Some object contain other object which might be freed as well
  35.     when this function is used on the "parent" while others might
  36.     also contain children but won't free them. Read the documentation
  37.     of the class carefully to find out how it behaves.
  38.  
  39.     INPUTS
  40.     object - The result of a call to NewObject() or a similar function.
  41.  
  42.     RESULT
  43.     None.
  44.  
  45.     NOTES
  46.     This functions sends OM_DISPOSE to the oejct.
  47.  
  48.     EXAMPLE
  49.  
  50.     BUGS
  51.  
  52.     SEE ALSO
  53.     NewObject(), SetAttrs((), GetAttr(), MakeClass()
  54.     "Basic Object-Oriented Programming System for Intuition" and
  55.     "boopsi Class Reference" Dokument.
  56.  
  57.     INTERNALS
  58.  
  59.     HISTORY
  60.     29-10-95    digulla automatically created from
  61.                 intuition_lib.fd and clib/intuition_protos.h
  62.  
  63. *****************************************************************************/
  64. {
  65.     __AROS_FUNC_INIT
  66.     __AROS_BASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
  67.     ULONG MethodID = OM_DISPOSE;
  68.  
  69.     OCLASS (object)->cl_ObjectCount --;
  70.  
  71.     DoMethodA (object, (Msg)&MethodID);
  72.  
  73.     __AROS_FUNC_EXIT
  74. } /* DisposeObject */
  75.